import Sprite from "./Sprite";

export default class Square extends Sprite{
  constructor(){
    super({
      x: 0,
      y: 0,
      w: 25,
      h: 25
    })
    this.color = 'green';
    this.type = "square";
    this.flag = false;
  }
  draw(gd){
    gd.save();

    gd.beginPath();
    gd.rect(this.x,this.y,this.w,this.h);
    gd.fillStyle = this.color;
    gd.fill();

    gd.restore();
  }
}